<#assign domain="${ctx.contextPath}" />
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv=”X-UA-Compatible” content=”IE=edge”>
	<meta name="renderer" content="webkit">
	<title>authority</title>
	<link rel="stylesheet" href="${domain}/static/css/common/bootstrap.min.css">
	<link rel="stylesheet" href="${domain}/static/css/common/base.css">
	<link rel="stylesheet" href="${domain}/static/css/common/header.css">
	<link rel="stylesheet" href="${domain}/static/css/queryOrder.css">
	<script src="${domain}/static/js/jquery-3.2.1.min.js"></script>
	<script src="${domain}/static/js/bootstrap.min.js"></script>
</head>
<body>
<div class="content">
	<!--订单管理内容-->
	<div class="query-order">
		<div class="table-responsive">
			<table class="table">
				<thead>
				<tr>
					<th>姓名</th>
					<th>产品</th>
					<th>查询时间</th>
					<th>操作</th>
				</tr>
				</thead>
				<tbody>
				<#list pm.list as pmList>
				<tr>
					<td>${pmList.name}</td>
					<td>
						<#if (pmList.serviceType==1)>
							反欺诈
						<#elseif (pmList.serviceType==2)>	
							评分卡
						</#if>	
					</td>
					<td>${pmList.createtime?date}</td>
					<td>
						<button class="btn btn-default b-blue" onclick="window.location.href='${domain}/External/queryOrderInfo?id=${pmList.id}';">
						       查看
						</button>
					</td>
				</tr>
				</#list>
				</tbody>
			</table>
			<div class="paging">
				共${pm.sumCount }条数据&nbsp;&nbsp;第${pm.currentPage }/${pm.sumPage }页&nbsp;&nbsp;
					<#if pm.currentPage<=1>
					  <!--<a onclick="window.location.href='${domain}/External/getOrderPage?userId=${userId}&pageNo=1';">-->
					  <a>	
					  	上一页
					  </a>
					<#else> 
					    <a onclick="window.location.href='${domain}/External/getOrderPage?userId=${userId}&pageNo=${pm.currentPage - 1}';">
				                    上一页
				        </a>
					</#if>
				&nbsp;&nbsp;
					<#if pm.currentPage = pm.sumPage>
						<!--<a onclick="window.location.href='${domain}/External/getOrderPage?userId=${userId}&pageNo=${pm.sumPage}';">-->
						<a>
							下一页
						</a>
					<#else> 
					    <a onclick="window.location.href='${domain}/External/getOrderPage?userId=${userId}&pageNo=${pm.currentPage+1}';">
							下一页
						</a>
					</#if>
			</div>
		</div>
	</div>
</div>
</body>
</html>